package cloning.my;

public class DeepSimpleObject implements Cloneable {

	private InnerObject inner;

	public InnerObject getInner() {
		return inner;
	}

	public void setInner(InnerObject inner) {
		this.inner = inner;
	}

	public DeepSimpleObject clone() {
		try {

			DeepSimpleObject copy = (DeepSimpleObject) super.clone();
			copy.inner = (InnerObject) inner.clone();
			return copy;
		} catch (CloneNotSupportedException e) {

			e.printStackTrace();
		}

		return null;
	}

}
